home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pct1-b.zip
/
SUBTEMP1.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-11-02
|
3KB
|
100 lines
INCLUDE \pushregs.mac
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
STACKSEG SEGMENT STACK 'STACK'
dw 500h dup (?)
STACKSEG ENDS
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DATASTUFF SEGMENT PUBLIC 'DATA'
; 1 = signed, 2 = unsigned, 3 = binary
; 4 = hex, 5 = ascii
; 90h = signed, A0h = unsigned, B0h = binary
; C0h = hex, D0h = ascii
PUBLIC ax_byte, bx_byte, cx_byte, dx_byte
PUBLIC si_byte, di_byte, bp_byte, sp_byte
ax_byte db 2
bx_byte db 2
cx_byte db 2
dx_byte db 2
si_byte db 2
di_byte db 2
bp_byte db 2
sp_byte db 2
; + + + + + + + + + + + + + + + START DATA BELOW THIS LINE
; + + + + + + + + + + + + + + + END DATA ABOVE THIS LINE
DATASTUFF ENDS
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CODESTUFF SEGMENT PUBLIC 'CODE'
; ************** ASMHELP.OBJ INFO
EXTRN show_regs:NEAR , show_regs_and_wait:NEAR
EXTRN set_reg_style:NEAR , set_count:NEAR
EXTRN set_blue:NEAR , get_continue:NEAR
EXTRN get_num:NEAR , print_num:NEAR
EXTRN get_string:NEAR , print_string:NEAR
EXTRN get_ascii_byte:NEAR , print_ascii_byte:NEAR
EXTRN get_ascii:NEAR , print_ascii:NEAR
EXTRN get_hex_byte:NEAR , print_hex_byte:NEAR
EXTRN get_hex:NEAR , print_hex:NEAR
EXTRN get_binary_byte:NEAR , print_binary_byte:NEAR
EXTRN get_binary:NEAR , print_binary:NEAR
EXTRN get_bcd:NEAR , print_bcd:NEAR
EXTRN get_signed_byte:NEAR , print_signed_byte:NEAR
EXTRN get_unsigned_byte:NEAR , print_unsigned_byte:NEAR
EXTRN get_signed:NEAR , print_signed:NEAR
EXTRN get_unsigned:NEAR , print_unsigned:NEAR
EXTRN get_signed_4byte:NEAR , print_signed_4byte:NEAR
EXTRN get_unsigned_4byte:NEAR , print_unsigned_4byte:NEAR
EXTRN get_signed_8byte:NEAR , print_signed_8byte:NEAR
EXTRN get_unsigned_8byte:NEAR , print_unsigned_8byte:NEAR
; ************** END ASMHELP.OBJ INFO
ASSUME cs:CODESTUFF, ds:DATASTUFF
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
main proc far
start: push ds ; set up for return
sub ax,ax
push ax
mov ax, DATASTUFF
mov ds,ax
; + + + + + + + + + + + + + + + START CODE BELOW THIS LINE
; + + + + + + + + + + + + + + + END CODE ABOVE THIS LINE
ret
main endp
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
; If you call one of these subroutines from a
; different file, it must be declared with a
; PUBLIC statement. If you call a subroutine in a
; different file, it must be declared with an
; EXTRN statement.
; + + + + + + + + + + + + START SUBROUTINES BELOW THIS LINE
; + + + + + + + + + + + + END SUBROUTINES ABOVE THIS LINE
CODESTUFF ENDS
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
END start